package com.itheima.dao;

import com.itheima.domain.Users;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface LoginDao {
    @Insert("insert into users(id,username,password,telephone,state) values(null,#{username},#{password},#{telephone},#{state})")
    void save(Users users);
    @Select("select * from users where username={#username}")
    Users login(String username);



}
